<?php
header('Content-type:text/html;charset=utf-8');//设置编码格式
session_start();
include_once 'dbconfig.php';
include_once 'common.php';

if ($_GET) {
    if (isset($_GET['getType']) && $_GET['getType'] == 'getList') {
        $selecuSqlStr = 'SELECT * FROM `product` WHERE status = 1  and id = ' . $_GET['proId'];
    } else if (isset($_GET['getType']) && $_GET['getType'] == 'getDefault') {
        $selecuSqlStr = 'SELECT * FROM `product` WHERE status = 1  limit 0,1';
    }
    judge($selecuSqlStr);
}
